#include <stdio.h>
#include <stdlib.h>

struct Cat {
  char *name;
  int age;
  char gender;
};
struct Student {
  char *name;
  int age;
} s1, s2;
typedef struct Teacher Teacher;
struct Teacher {
  char *name;
  int age;
  char *gender;
};
int main(int argc, char *argv[]) {
  /* 结构体成员调用
   */
  struct Cat cat = {"小黄", 2, 'M'};
  struct Cat cat2 = {"小黑"};
  printf("name = %s\nage = %d\ngender = %c\n", cat.name, cat.age, cat.gender);
  printf("name = %s\nage = %d\ngender = %c\n", cat2.name, cat2.age,
         cat2.gender);
  return EXIT_SUCCESS;
}
